(decode_coding_string, encode_coding_string): Use SBYTES macro.
authorKen Raeburn <raeburn@raeburn.org>
Mon, 10 Aug 2009 00:56:00 +0000 (00:56 +0000)
committerKen Raeburn <raeburn@raeburn.org>
Mon, 10 Aug 2009 00:56:00 +0000 (00:56 +0000)
src/ChangeLog
src/coding.h

index b7817beb9ffa5bd91f30d11f31c5fdf6c22e2dff..25c91d21044f233049f83c1f66c0d23f3cc221c8 100644 (file)
@@ -1,5 +1,8 @@
 2009-08-10  Ken Raeburn  <raeburn@raeburn.org>
 
+       * coding.h (decode_coding_string, encode_coding_string): Use
+       SBYTES macro.
+
        * doprnt.c (doprnt_lisp): Unused function deleted.
        (doprnt): Merge with doprnt1, discarding lispstrings code.
        * lisp.h (doprnt_lisp): Don't declare.
index 3e89ff10421d042ff37c3b5ee39b24dc526b27a3..27bc8333c6dc0ee308cb7250537cf21f3410751b 100644 (file)
@@ -735,11 +735,11 @@ extern void encode_coding_object P_ ((struct coding_system *,
 
 #define decode_coding_string(coding, string, nocopy)                   \
   decode_coding_object (coding, string, 0, 0, SCHARS (string),         \
-                       STRING_BYTES (XSTRING (string)), Qt)
+                       SBYTES (string), Qt)
 
 #define encode_coding_string(coding, string, nocopy)                   \
   (encode_coding_object (coding, string, 0, 0, SCHARS (string),                \
-                        STRING_BYTES (XSTRING (string)), Qt),          \
+                        SBYTES (string), Qt),                          \
    (coding)->dst_object)